import React, { Component } from 'react';

import { geobalContext } from "./common/js/globalData";

// 解构 
let {Consumer} = geobalContext

class Child11 extends Component {
  constructor(props) {
    super(props);
  }
  state = {  }
  render() { 
    return ( 
      <>
        <Consumer>
          {
            value =>(
              <div>
                孙子组件：
                孙子组件获取父父组件的值{value.name}
              </div>
            )
          }
        </Consumer>
      </>
     );
  }
}
 
export default Child11;